<template>
    <div class="container" >
      <div class="loader-dom">
        <div class="loader">
        <div class="face">
        <div class="circle"></div>
        </div>
        <div class="face">
        <div class="circle"></div>
        </div>
        <div class="circle-text">building</div>
      </div>
      </div>
      <div class="loader-text-dom">
        <div class="loader-text">
        <div>B</div>
        <div>U</div>
        <div>I</div>
        <div>L</div>
        <div>D</div>
        <div>I</div>
        <div>N</div>
        <div>G</div>
      </div>
      </div>
    </div>
</template>

<script>
export default {
  name: 'show',
  components: {
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.container{
    width: calc(100% - 50px);
    height: calc(100% - 60px)!important;
    margin: 15px auto;
    background: linear-gradient(45deg,#283046 0%,#161d31 100% );
    /* background: unset; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: 400%;
    background-position: 0% 100%;
    animation: gradient 7.5s ease-in-out infinite;
}
/*背景渐变 */
/*背景渐变 */
@keyframes gradient{
  50%{
    background-position: 100% 0%;
  }
}
.loader-dom{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.loader-text-dom{
  width: 50%;
  height: 80px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-text{
  width: 100%;
  height: 80px;
  line-height: 80px;
  font-size: 26px;
  /* color: #fff; */
  transform: translateX(0%);
  z-index: 3;
  user-select: none;
  margin: 0 auto;
  /* display: inline-block; */
  position: relative;
  padding-right: 50px;
}
.loader-text div{
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 32px;
  margin: 0 20px;
  position: absolute;
  transform: rotate(180deg);
  animation: move 4s linear infinite;
  opacity: 0;
}
  /* .loader-text div:nth-child(6)::before,
  .loader-text div:nth-child(7)::before,
  .loader-text div:nth-child(8)::before{
    content:'';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
  } */
.loader-text div::after{
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  position: absolute;
  bottom: -40px;
  left: 40%;
  margin-left: -5px;
}
/* .loader-text div:nth-child(6)::after,
.loader-text div:nth-child(7)::after,
.loader-text div:nth-child(8)::after{
  left: 0;
  margin-left: 0;
} */

.loader-text div:nth-child(2){
  animation-delay: 0.5s;
}
.loader-text div:nth-child(3){
  animation-delay: 1s;
}
.loader-text div:nth-child(4){
  animation-delay: 1.5s;
}
.loader-text div:nth-child(5){
  animation-delay: 2s;
}
.loader-text div:nth-child(6){
  animation-delay: 2.5s;
}
.loader-text div:nth-child(7){
  animation-delay: 3s;
}
.loader-text div:nth-child(8){
  animation-delay: 3.5s;
}
@keyframes move{
  0%{
    right: 0;
    opacity: 0;
  }
  35%{
    right: 41%;
    opacity: 1;
    transform: rotate(0);
  }
  65%{
    right: 59%;
    opacity: 1;
    transform: rotate(0);
  }
  100%{
    right: 100%;
    transform: rotate(-180deg);
  }
}
.loader {
    width: 200px;
    height: 200px;
    font-size: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.circle-text{
  font-size: 20px;
  color: #fff;
}
.loader .face {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    animation: animate 3s linear infinite;
}
.loader .face:nth-child(1) {
    width: 100%;
    height: 100%;
    color: #03e9f4;
    border-color: currentColor transparent transparent currentColor;
    border-width: 0.2em 0.2em 0em 0em;
    --deg: -45deg;
    animation-direction: normal;
}
.loader .face:nth-child(2) {
    width: 70%;
    height: 70%;
    color: #4839eb;
    border-color: currentColor currentColor transparent transparent;
    border-width: 0.2em 0em 0em 0.2em;
    --deg: -135deg;
    animation-direction: reverse;
}
.loader .face .circle {
    position: absolute;
    width: 50%;
    height: 0.1em;
    top: 50%;
    left: 50%;
    background-color: transparent;
    transform: rotate(var(--deg));
    transform-origin: left;
}
.loader .face .circle::before {
    position: absolute;
    top: -0.5em;
    right: -0.5em;
    content: '';
    width: 1em;
    height: 1em;
    background-color: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 2em, 0 0 4em, 0 0 6em, 0 0 8em, 0 0 10em, 0 0 0 0.5em rgb(255 255 0 / 10%);
}
@keyframes animate {
  100% {
   transform: rotate(1turn);
  }
}
</style>
